package com.gton.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @description: 读取北极星配置中心的配置：根据前缀--my
 * @author: GuoTong
 * @createTime: 2022-11-12 19:42
 * @since JDK 1.8 OR 11
 **/
@Data
@Component
@ConfigurationProperties(prefix = "my")
public class MyConfigReadPolaris {

    /**
     * Description: 名称
     *
     * @author: GuoTong
     */
    private String name;

    /**
     * Description: 性别
     *
     * @author: GuoTong
     */
    private String sex;

    /**
     * Description: 年龄
     *
     * @author: GuoTong
     */
    private int age;


}
